<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>CCRenderer Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.2 (build 963)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">Cocos2D </a></h1>
				<a id="developerHome" href="../index.html">3.2.0</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">CCRenderer Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/globalShaderUniforms">&nbsp;&nbsp;&nbsp;&nbsp;globalShaderUniforms</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/bindRenderer:">&nbsp;&nbsp;&nbsp;&nbsp;+ bindRenderer:</option>
	
	<option value="//api/name/currentRenderer">&nbsp;&nbsp;&nbsp;&nbsp;+ currentRenderer</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/bindVAO:">&nbsp;&nbsp;&nbsp;&nbsp;- bindVAO:</option>
	
	<option value="//api/name/enqueueBlock:globalSortOrder:debugLabel:threadSafe:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueBlock:globalSortOrder:debugLabel:threadSafe:</option>
	
	<option value="//api/name/enqueueClear:color:depth:stencil:globalSortOrder:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueClear:color:depth:stencil:globalSortOrder:</option>
	
	<option value="//api/name/enqueueLines:andVertexes:withState:globalSortOrder:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueLines:andVertexes:withState:globalSortOrder:</option>
	
	<option value="//api/name/enqueueMethod:target:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueMethod:target:</option>
	
	<option value="//api/name/enqueueRenderCommand:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueRenderCommand:</option>
	
	<option value="//api/name/enqueueTriangles:andVertexes:withState:globalSortOrder:">&nbsp;&nbsp;&nbsp;&nbsp;- enqueueTriangles:andVertexes:withState:globalSortOrder:</option>
	
	<option value="//api/name/flush">&nbsp;&nbsp;&nbsp;&nbsp;- flush</option>
	
	<option value="//api/name/invalidateState">&nbsp;&nbsp;&nbsp;&nbsp;- invalidateState</option>
	
	<option value="//api/name/popGroupWithDebugLabel:globalSortOrder:">&nbsp;&nbsp;&nbsp;&nbsp;- popGroupWithDebugLabel:globalSortOrder:</option>
	
	<option value="//api/name/pushGroup">&nbsp;&nbsp;&nbsp;&nbsp;- pushGroup</option>
	
	<option value="//api/name/resizeBuffer:capacity:">&nbsp;&nbsp;&nbsp;&nbsp;- resizeBuffer:capacity:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_NoARC Methods">NoARC Methods</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Extension Methods">Extension Methods</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/globalShaderUniforms">globalShaderUniforms</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bindRenderer:">bindRenderer:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/currentRenderer">currentRenderer</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bindVAO:">bindVAO:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueBlock:globalSortOrder:debugLabel:threadSafe:">enqueueBlock:globalSortOrder:debugLabel:threadSafe:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueClear:color:depth:stencil:globalSortOrder:">enqueueClear:color:depth:stencil:globalSortOrder:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueLines:andVertexes:withState:globalSortOrder:">enqueueLines:andVertexes:withState:globalSortOrder:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueMethod:target:">enqueueMethod:target:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueRenderCommand:">enqueueRenderCommand:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/enqueueTriangles:andVertexes:withState:globalSortOrder:">enqueueTriangles:andVertexes:withState:globalSortOrder:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/flush">flush</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/invalidateState">invalidateState</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/popGroupWithDebugLabel:globalSortOrder:">popGroupWithDebugLabel:globalSortOrder:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/pushGroup">pushGroup</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/resizeBuffer:capacity:">resizeBuffer:capacity:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="CCRenderer Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">CCRenderer Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">CCRenderer.h</td>
</tr>
						</tbody></table></div>
					
                    
                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>A rendering queue.
All drawing commands in Cocos2D must be sequenced using a CCRenderer.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						
						<h3 class="subsubtitle task-title">Other Methods</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/invalidateState">&ndash;&nbsp;invalidateState</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueClear:color:depth:stencil:globalSortOrder:">&ndash;&nbsp;enqueueClear:color:depth:stencil:globalSortOrder:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueBlock:globalSortOrder:debugLabel:threadSafe:">&ndash;&nbsp;enqueueBlock:globalSortOrder:debugLabel:threadSafe:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueMethod:target:">&ndash;&nbsp;enqueueMethod:target:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/pushGroup">&ndash;&nbsp;pushGroup</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/popGroupWithDebugLabel:globalSortOrder:">&ndash;&nbsp;popGroupWithDebugLabel:globalSortOrder:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="NoARC Methods" name="task_NoARC Methods"></a>
						<h3 class="subsubtitle task-title">NoARC Methods</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueTriangles:andVertexes:withState:globalSortOrder:">&ndash;&nbsp;enqueueTriangles:andVertexes:withState:globalSortOrder:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueLines:andVertexes:withState:globalSortOrder:">&ndash;&nbsp;enqueueLines:andVertexes:withState:globalSortOrder:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Extension Methods" name="task_Extension Methods"></a>
						<h3 class="subsubtitle task-title">Extension Methods</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/globalShaderUniforms">&nbsp;&nbsp;globalShaderUniforms</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/currentRenderer">+&nbsp;currentRenderer</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/bindRenderer:">+&nbsp;bindRenderer:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/enqueueRenderCommand:">&ndash;&nbsp;enqueueRenderCommand:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/flush">&ndash;&nbsp;flush</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/bindVAO:">&ndash;&nbsp;bindVAO:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/resizeBuffer:capacity:">&ndash;&nbsp;resizeBuffer:capacity:</a></code>
	</span>
	
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/globalShaderUniforms" title="globalShaderUniforms"></a>
	<h3 class="subsubtitle method-title">globalShaderUniforms</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Current global shader uniform values.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) NSDictionary *globalShaderUniforms</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/bindRenderer:" title="bindRenderer:"></a>
	<h3 class="subsubtitle method-title">bindRenderer:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Set the current renderer for the current thread.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (void)bindRenderer:(CCRenderer *)<em>renderer</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/currentRenderer" title="currentRenderer"></a>
	<h3 class="subsubtitle method-title">currentRenderer</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Retrieve the current renderer for the current thread.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (instancetype)currentRenderer</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/bindVAO:" title="bindVAO:"></a>
	<h3 class="subsubtitle method-title">bindVAO:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Bind the renderer&rsquo;s VAO if it is not currently bound.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)bindVAO:(BOOL)<em>bind</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueBlock:globalSortOrder:debugLabel:threadSafe:" title="enqueueBlock:globalSortOrder:debugLabel:threadSafe:"></a>
	<h3 class="subsubtitle method-title">enqueueBlock:globalSortOrder:debugLabel:threadSafe:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a block that performs GL commands. The debugLabel is optional and will show up in in the GLES frame debugger.
Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)enqueueBlock:(void ( ^ ) ( ))<em>block</em> globalSortOrder:(NSInteger)<em>globalSortOrder</em> debugLabel:(NSString *)<em>debugLabel</em> threadSafe:(BOOL)<em>threadSafe</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueClear:color:depth:stencil:globalSortOrder:" title="enqueueClear:color:depth:stencil:globalSortOrder:"></a>
	<h3 class="subsubtitle method-title">enqueueClear:color:depth:stencil:globalSortOrder:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a OpenGL clear operation for the given buffers and the given values.
Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)enqueueClear:(GLbitfield)<em>mask</em> color:(GLKVector4)<em>color4</em> depth:(GLclampf)<em>depth</em> stencil:(GLint)<em>stencil</em> globalSortOrder:(NSInteger)<em>globalSortOrder</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueLines:andVertexes:withState:globalSortOrder:" title="enqueueLines:andVertexes:withState:globalSortOrder:"></a>
	<h3 class="subsubtitle method-title">enqueueLines:andVertexes:withState:globalSortOrder:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a drawing command for some lines.
Returns a CCRendereBuffer that you should fill using CCRenderBufferSetVertex() and CCRenderBufferSetLine().
Note: These are primitive OpenGL lines that you&rsquo;ll only want to use for debug rendering. They are not batched.
Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCRenderBuffer)enqueueLines:(NSUInteger)<em>lineCount</em> andVertexes:(NSUInteger)<em>vertexCount</em> withState:(CCRenderState *)<em>renderState</em> globalSortOrder:(NSInteger)<em>globalSortOrder</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueMethod:target:" title="enqueueMethod:target:"></a>
	<h3 class="subsubtitle method-title">enqueueMethod:target:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a method that performs GL commands.
Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)enqueueMethod:(SEL)<em>selector</em> target:(id)<em>target</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueRenderCommand:" title="enqueueRenderCommand:"></a>
	<h3 class="subsubtitle method-title">enqueueRenderCommand:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a general or custom render command.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)enqueueRenderCommand:(id&lt;CCRenderCommand&gt;)<em>renderCommand</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/enqueueTriangles:andVertexes:withState:globalSortOrder:" title="enqueueTriangles:andVertexes:withState:globalSortOrder:"></a>
	<h3 class="subsubtitle method-title">enqueueTriangles:andVertexes:withState:globalSortOrder:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Enqueue a drawing command for some triangles.
Returns a CCRendereBuffer that you should fill using CCRenderBufferSetVertex() and CCRenderBufferSetTriangle().
Enqueued commands are sorted by their globalSortOrder value before rendering. Currently this value is 0 for everything except custom draw methods.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCRenderBuffer)enqueueTriangles:(NSUInteger)<em>triangleCount</em> andVertexes:(NSUInteger)<em>vertexCount</em> withState:(CCRenderState *)<em>renderState</em> globalSortOrder:(NSInteger)<em>globalSortOrder</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/flush" title="flush"></a>
	<h3 class="subsubtitle method-title">flush</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Render any currently queued commands.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)flush</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/invalidateState" title="invalidateState"></a>
	<h3 class="subsubtitle method-title">invalidateState</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Mark the renderer&rsquo;s cached GL state as invalid executing custom OpenGL code.
You only need to call this if you change the shader, texture or blending mode states.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)invalidateState</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/popGroupWithDebugLabel:globalSortOrder:" title="popGroupWithDebugLabel:globalSortOrder:"></a>
	<h3 class="subsubtitle method-title">popGroupWithDebugLabel:globalSortOrder:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>End the most recent group started using <a href="#//api/name/pushGroup">pushGroup</a>.
The grouped commands are sorted together using the gives sorting order.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)popGroupWithDebugLabel:(NSString *)<em>debugLabel</em> globalSortOrder:(NSInteger)<em>globalSortOrder</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/pushGroup" title="pushGroup"></a>
	<h3 class="subsubtitle method-title">pushGroup</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Begin a rendering group. Must be matched with a call to popGroup:. Can be nested.
Commands in the group are sorted relative to each other.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)pushGroup</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/resizeBuffer:capacity:" title="resizeBuffer:capacity:"></a>
	<h3 class="subsubtitle method-title">resizeBuffer:capacity:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Resize the capacity of a graphics buffer.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)resizeBuffer:(struct CCGraphicsBuffer *)<em>buffer</em> capacity:(size_t)<em>capacity</em></code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCRenderer_private.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
                    
                    
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2014 3.2.0. All rights reserved. (Last updated: 2014-08-12)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>